package com.ruoyi.system.service.news.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.ruoyi.system.domain.news.EvaluationAgencyInfo;
import com.ruoyi.system.domain.news.query.EvaluationAgencyInfoQuery;
import com.ruoyi.system.domain.news.vo.EvaluationAgencyInfoVo;
import com.ruoyi.system.mapper.news.EvaluationAgencyInfoMapper;
import com.ruoyi.system.service.news.EvaluationAgencyInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class EvaluationAgencyInfoServiceImpl extends ServiceImpl<EvaluationAgencyInfoMapper, EvaluationAgencyInfo>
        implements EvaluationAgencyInfoService {

    @Override
//    @DataScope(deptAlias = "t",userAlias = "t")
    public List<EvaluationAgencyInfoVo> getEvaluationAgencyInfoList(EvaluationAgencyInfoQuery evaluationAgencyInfoQuery) {
        if (evaluationAgencyInfoQuery.getIfPage()) {
            PageHelper.startPage(evaluationAgencyInfoQuery.getPageNum(), evaluationAgencyInfoQuery.getPageSize());
        }
        return baseMapper.getEvaluationAgencyInfoList(evaluationAgencyInfoQuery);
    }
}
